package com.ruoyi.web.es.beans;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * @Document(indexName = "user-demo") 索引名称为user-demo
 * */
@Data
@Document(indexName = "#{@esConfig.getApiCallIndexName()}",createIndex = false)
public class User {
    @Id
    private Long id;

    private String username;
    private String address;
    private Integer age;
    private String gender;
}
